package demo2.service;

import demo2.mapper.UserMapper;
import demo2.model.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author quan
 * @Description 服务层实现代码
 * @Date 2023/7/24 9:33
 */
@Service
public class UserService {
    /**
     * 根据Id查询用户
     */
    @Resource
    private UserMapper userMapper;
    public User queryById(){
        return userMapper.queryById(1);
    }
}
